﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.CompletionMaterialsEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/5/23 9:56:08
    /// </summary> 
    [Serializable]
    [ModelMap("Bcd_Project", new string[] { "P_ID" })]
    public class BcdProjectInfo : BaseEntity
    {
        public BcdProjectInfo()
        {

        }
        
        private string _pId;
        /// <summary>
        /// 主键
        /// </summary>
        [ColumnMap("P_ID", System.Data.DbType.String)]
        public string P_ID
        {
            get {return _pId;}
            set
            {
                if (object.Equals(this._pId, value) != true)
                {
                    this._pId = value;
                    this.RaisePropertyChanged("P_ID");
                }
            }
        }
        private string _fpId;
        /// <summary>
        /// 材料类型ID
        /// </summary>
        [ColumnMap("Fd_ID", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string Fd_ID
        {
            get { return _fpId; }
            set
            {
                if (object.Equals(this._fpId, value) != true)
                {
                    this._fpId = value;
                    this.RaisePropertyChanged("Fd_ID");
                }
            }
        }
        private int _prId;
        /// <summary>
        /// 项目ID
        /// </summary>
        [ColumnMap("Pr_ID", System.Data.DbType.Int32)]
        public int Pr_ID
        {
            get { return _prId; }
            set
            {
                if (object.Equals(this._prId, value) != true)
                {
                    this._prId = value;
                    this.RaisePropertyChanged("Pr_ID");
                }
            }
        }
        private string _pName;
        /// <summary>
        /// 项目名称
        /// </summary>
        [ColumnMap("P_Name", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string P_Name
        {
            get {return _pName;}
            set
            {
                if (object.Equals(this._pName, value) != true)
                {
                    this._pName = value;
                    this.RaisePropertyChanged("P_Name");
                }
            }
        }
        private string _pCode;
        /// <summary>
        /// 项目编号
        /// </summary>
        [ColumnMap("P_Code", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string P_Code
        {
            get { return _pCode; }
            set
            {
                if (object.Equals(this._pCode, value) != true)
                {
                    this._pCode = value;
                    this.RaisePropertyChanged("P_Code");
                }
            }
        }
        private string _pUtype;
        /// <summary>
        /// 编制单位类型
        /// </summary>
        [ColumnMap("P_UType", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string P_UType
        {
            get {return _pUtype;}
            set
            {
                if (object.Equals(this._pUtype, value) != true)
                {
                    this._pUtype = value;
                    this.RaisePropertyChanged("P_UType");
                }
            }
        }
        private string _pSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("P_Section", System.Data.DbType.String)]
        public string P_Section
        {
            get {return _pSection;}
            set
            {
                if (object.Equals(this._pSection, value) != true)
                {
                    this._pSection = value;
                    this.RaisePropertyChanged("P_Section");
                }
            }
        }
        private string _pUnit;
        /// <summary>
        /// 编制单位
        /// </summary>
        [ColumnMap("P_Unit", System.Data.DbType.String)]
        [Required(ErrorMessage = "*")]
        public string P_Unit
        {
            get {return _pUnit;}
            set
            {
                if (object.Equals(this._pUnit, value) != true)
                {
                    this._pUnit = value;
                    this.RaisePropertyChanged("P_Unit");
                }
            }
        }
        private int _pOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("P_OperateUserID", System.Data.DbType.Int32)]
        public int P_OperateUserID
        {
            get {return _pOperateuserid;}
            set
            {
                if (object.Equals(this._pOperateuserid, value) != true)
                {
                    this._pOperateuserid = value;
                    this.RaisePropertyChanged("P_OperateUserID");
                }
            }
        }
        private string _pOperateusername;
        /// <summary>
        /// 操作人名
        /// </summary>
        [ColumnMap("P_OperateUserName", System.Data.DbType.String)]
        public string P_OperateUserName
        {
            get {return _pOperateusername;}
            set
            {
                if (object.Equals(this._pOperateusername, value) != true)
                {
                    this._pOperateusername = value;
                    this.RaisePropertyChanged("P_OperateUserName");
                }
            }
        } 
        private DateTime _pOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("P_OperateTime", System.Data.DbType.DateTime)]
        public DateTime P_OperateTime
        {
            get {return _pOperatetime;}
            set
            {
                if (object.Equals(this._pOperatetime, value) != true)
                {
                    this._pOperatetime = value;
                    this.RaisePropertyChanged("P_OperateTime");
                }
            }
        }
        private string _fdPid;
        /// <summary>
        /// 材料类型父键
        /// </summary>
        [ColumnMap("Fd_PID", System.Data.DbType.String)]
        public string Fd_PID
        {
            get { return _fdPid; }
            set
            {
                if (object.Equals(this._fdPid, value) != true)
                {
                    this._fdPid = value;
                    this.RaisePropertyChanged("Fd_PID");
                }
            }
        }
        private int _fdOrder;
        /// <summary>
        /// 材料类型排序
        /// </summary>
        [ColumnMap("Fd_Order", System.Data.DbType.Int32)]
        public int Fd_Order
        {
            get { return _fdOrder; }
            set
            {
                if (object.Equals(this._fdOrder, value) != true)
                {
                    this._fdOrder = value;
                    this.RaisePropertyChanged("Fd_Order");
                }
            }
        }
        private string _fpNumb;
        /// <summary>
        /// 材料类型序号
        /// </summary>
        [ColumnMap("Fd_Numb", System.Data.DbType.String)]
        public string Fd_Numb
        {
            get { return _fpNumb; }
            set
            {
                if (object.Equals(this._fpNumb, value) != true)
                {
                    this._fpNumb = value;
                    this.RaisePropertyChanged("Fd_Numb");
                }
            }
        }
        private string _fpName;
        /// <summary>
        /// 材料类型名
        /// </summary>
        [ColumnMap("Fd_Name", System.Data.DbType.String)]
        public string Fd_Name
        {
            get { return _fpName; }
            set
            {
                if (object.Equals(this._fpName, value) != true)
                {
                    this._fpName = value;
                    this.RaisePropertyChanged("Fd_Name");
                }
            }
        }
        private string _fdCode;
        /// <summary>
        /// 档案号
        /// </summary>
        [ColumnMap("Fd_Code", System.Data.DbType.String)]
        public string Fd_Code
        {
            get { return _fdCode; }
            set
            {
                if (object.Equals(this._fdCode, value) != true)
                {
                    this._fdCode = value;
                    this.RaisePropertyChanged("Fd_Code");
                }
            }
        }


        private int _fdKit;
        /// <summary>
        /// 编制套数
        /// </summary>
        [ColumnMap("Fd_Kit", System.Data.DbType.Int32)]
        public int Fd_Kit
        {
            get { return _fdKit; }
            set
            {
                if (object.Equals(this._fdKit, value) != true)
                {
                    this._fdKit = value;
                    this.RaisePropertyChanged("Fd_Kit");
                }
            }
        }


        private string _fdKept;
        /// <summary>
        /// 保管期限(永久、长期、短期、30年)
        /// </summary>
        [ColumnMap("Fd_Kept", System.Data.DbType.String)]
        public string Fd_Kept
        {
            get { return _fdKept; }
            set
            {
                if (object.Equals(this._fdKept, value) != true)
                {
                    this._fdKept = value;
                    this.RaisePropertyChanged("Fd_Kept");
                }
            }
        }


        private string _fdUtype;
        /// <summary>
        /// 编制单位类型(项目法人，设计单位，施工单位，监理单位，施工、监理，相关单位)
        /// </summary>
        [ColumnMap("Fd_UType", System.Data.DbType.String)]
        public string Fd_UType
        {
            get { return _fdUtype; }
            set
            {
                if (object.Equals(this._fdUtype, value) != true)
                {
                    this._fdUtype = value;
                    this.RaisePropertyChanged("Fd_UType");
                }
            }
        }

        private string _fdTable;
        /// <summary>
        /// 表格号
        /// </summary>
        [ColumnMap("Fd_Table", System.Data.DbType.String)]
        public string Fd_Table
        {
            get { return _fdTable; }
            set
            {
                if (object.Equals(this._fdTable, value) != true)
                {
                    this._fdTable = value;
                    this.RaisePropertyChanged("Fd_Table");
                }
            }
        }


        private string _fdRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Fd_Remark", System.Data.DbType.String)]
        public string Fd_Remark
        {
            get { return _fdRemark; }
            set
            {
                if (object.Equals(this._fdRemark, value) != true)
                {
                    this._fdRemark = value;
                    this.RaisePropertyChanged("Fd_Remark");
                }
            }
        }
        
    }
}



